<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EShoppers Paradise</title>
</head>
<body>
<form action="/esp/search">
Search
<input type="text" name="searchString"></input>
<input type="submit" value="Search"></input>
</form>
	<c:if test="${not empty items }">
		<table>
			<c:forEach items="${items}" var="item">
				<tr>
					<td>${item.merchantname }</td>
					<td>${item.mid }</td>
					<td>${item.linkid }</td>
					<td>${item.sku }</td>
					<td>${item.productname }</td>
					<td>${item.primaryCategory }</td>
					<td>${item.secondaryCategory }</td>
					<td>${item.itemPrice }</td>
					<td>${item.longDescription }</td>
					<td>${item.keywords }</td>
					<td><img src="${item.imageurl }"></img></td>
					<td><a href ="${item.linkurl}">Go to site</a></td>
				</tr>
			</c:forEach>
		</table>
	</c:if>
</body>
</html>